<template>
  <div>
    <el-container>
      <el-header>标题栏</el-header>
      <el-container>
        <el-aside width="205x">
          <Aside></Aside>
        </el-aside>
        <el-main>
          <transition name="fade" mode="out-in">
            <router-view></router-view>
          </transition>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script>
import Aside from "@/components/Aside.vue";
export default {
  name: "HelloWorld",
  props: {
    msg: String
  },
  data() {
    return {};
  },
  components: {
    Aside
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
.el-header,
.el-footer {
  background-color: #409eff;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  margin: 10px 0px 0px 0px;
  min-height: 800px;
  // background-color: #dcdfe6;
  // color: #333;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
}

.el-main {
  // background-color: lightslategray;
  margin: 10px 0px 0px 10px;
  color: #333;
  background-color: #dcdfe6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
}

body > .el-container {
  margin-bottom: 40px;
}
</style>
